package ynu.edu.Dao;

import org.springframework.data.jpa.repository.JpaRepository;
import ynu.edu.Entity.Light;

import java.util.Optional;

public interface LightDao extends JpaRepository<Light,Long> {
    Optional<Light> findFirstByOrderByCreateTimeDesc();
}
